addr = direct_mmap(mem_data->pfn << PAGE_SHIFT, mem_data->tot_pages << PAGE_SHIFT, prot, 0, 0);
printk(KERN_ALERT "bd240 debug: dom_mem_read: %lx, %lx @ %lx\n", mem_data->pfn << PAGE_SHIFT, mem_data->tot_pages << PAGE_SHIFT, addr);
- //addr = direct_mmap(mem_data->pfn, mem_data->tot_pages << PAGE_SHIFT, prot, 1,
- // mem_data->tot_pages);
copy_to_user((unsigned long *)buff, &addr, sizeof(addr));
printk(KERN_ALERT "bd240 debug: exiting dom_mem_read\n");
entry = find_direct(¤t->mm->context.direct_list, addr);
if(entry != ¤t->mm->context.direct_list){
list_add_tail(&dmmap->list, entry);
- printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", dmmap->vm_start);
+ printk(KERN_ALERT "bd240 debug: added node %lx, size %lx in the middle\n", dmmap->vm_start, size);
} else {
list_add_tail(&dmmap->list, ¤t->mm->context.direct_list);
- printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", dmmap->vm_start);
+ printk(KERN_ALERT "bd240 debug: added node %lx, size %lx at tail\n", dmmap->vm_start, size);
}
/* and perform the mapping */